package com.ourteam.system.dao;

import net.dao.IDataAccessInterface;


/**
 * Template Name : DAO接口模板
 * Template Version : 1
 * Template Last Modfiy Date : Thu Sep 21 11:14:14 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:17
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public interface IBaseSysRoleDAO extends IDataAccessInterface<SysRole, SysRoleDAOQueryBean> {
    /**
        *  Mapped Entity Name
        */
    static final String EntityName = "SYS_ROLE";

    /**
     * Mapped Field ID
    */
    static final String Id = "SYS_ROLE.ID";

    /**
     * Mapped Field DOMAIN_ID
    */
    static final String DomainId = "SYS_ROLE.DOMAIN_ID";

    /**
     * Mapped Field REMARKS
    */
    static final String Remarks = "SYS_ROLE.REMARKS";

    /**
     * Mapped Field ROLE_CODE
    */
    static final String RoleCode = "SYS_ROLE.ROLE_CODE";

    /**
     * Mapped Field ROLE_NAME
    */
    static final String RoleName = "SYS_ROLE.ROLE_NAME";

    /**
     * Mapped Field ROLE_TYPE
    */
    static final String RoleType = "SYS_ROLE.ROLE_TYPE";

    /**
     * Mapped Field STATUS
    */
    static final String Status = "SYS_ROLE.STATUS";

    /**
     * Mapped Field DEFAULT_FLAG
    */
    static final String DefaultFlag = "SYS_ROLE.DEFAULT_FLAG";

    /**
     * Mapped Field MODIFY_TIME
    */
    static final String ModifyTime = "SYS_ROLE.MODIFY_TIME";

    /**
     * Mapped Field OPERATOR_ID
    */
    static final String OperatorId = "SYS_ROLE.OPERATOR_ID";

    /**
     * Mapped Attribute operatorName
    */
    static final String OperatorName = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysUserDAO.UserName,
            com.ourteam.system.dao.ISysUserDAO.EntityName + ".",
            "operator_user.");

    /**
     * Mapped Attribute domainTitleKey
    */
    static final String DomainTitleKey = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysDomainDAO.DomainTitelKey,
            com.ourteam.system.dao.ISysDomainDAO.EntityName + ".", "SYS_DOMAIN.");

    /**
     * Mapped Attribute domainName
    */
    static final String DomainName = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysDomainDAO.DomainName,
            com.ourteam.system.dao.ISysDomainDAO.EntityName + ".", "SYS_DOMAIN.");

    /**
     * Mapped Attribute domainCode
    */
    static final String DomainCode = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysDomainDAO.DomainCode,
            com.ourteam.system.dao.ISysDomainDAO.EntityName + ".", "SYS_DOMAIN.");

    /**
     * Mapped Attribute domainSortIndex
    */
    static final String DomainSortIndex = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysDomainDAO.SortIndex,
            com.ourteam.system.dao.ISysDomainDAO.EntityName + ".", "SYS_DOMAIN.");

    /**
     * Mapped Attribute domainIcon
    */
    static final String DomainIcon = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysDomainDAO.DomainIcon,
            com.ourteam.system.dao.ISysDomainDAO.EntityName + ".", "SYS_DOMAIN.");

    /**
     * Delete Data
     * @param final long id
     * @throws Exception
     */
    void delete(final long id) throws Exception;

    /**
         * Find Data By Primary Key
         * @param  final long id
         * @throws Exception
         */
    SysRole findById(final long id) throws Exception;

    /**
         * Query Related SysRoleRelate
         * @param aQueryBean
         * @throws Exception
         */
    com.ourteam.system.dao.SysRoleRelate[] querySysRoleRelate(
        final SysRoleDAOQueryBean queryBean) throws Exception;

    /**
         * Query Related SysRoleRelate Selective
         * @param queryBean
         * @throws Exception
         */
    java.util.Map<String, Object>[] querySysRoleRelateSelective(
        final SysRoleDAOQueryBean queryBean) throws Exception;

    /**
         * Update Related SysRoleRelate
         * @param aSysRoleRelate
         * @param queryBean
         * @throws Exception
         */
    void updateSysRoleRelate(
        final com.ourteam.system.dao.SysRoleRelate aSysRoleRelate,
        SysRoleDAOQueryBean queryBean) throws Exception;

    /**
         * Delete Related SysRoleRelate
         * @param queryBean
         * @throws Exception
         */
    void deleteSysRoleRelate(final SysRoleDAOQueryBean queryBean)
        throws Exception;

    /**
         * Query Related SysRoleResourceRelate
         * @param aQueryBean
         * @throws Exception
         */
    com.ourteam.system.dao.SysRoleResourceRelate[] querySysRoleResourceRelate(
        final SysRoleDAOQueryBean queryBean) throws Exception;

    /**
         * Query Related SysRoleResourceRelate Selective
         * @param queryBean
         * @throws Exception
         */
    java.util.Map<String, Object>[] querySysRoleResourceRelateSelective(
        final SysRoleDAOQueryBean queryBean) throws Exception;

    /**
         * Update Related SysRoleResourceRelate
         * @param aSysRoleResourceRelate
         * @param queryBean
         * @throws Exception
         */
    void updateSysRoleResourceRelate(
        final com.ourteam.system.dao.SysRoleResourceRelate aSysRoleResourceRelate,
        SysRoleDAOQueryBean queryBean) throws Exception;

    /**
         * Delete Related SysRoleResourceRelate
         * @param queryBean
         * @throws Exception
         */
    void deleteSysRoleResourceRelate(final SysRoleDAOQueryBean queryBean)
        throws Exception;

    static public interface DataProperty {
        /**
         * Attribute defaultFlag
         */
        static final String DefaultFlag = "defaultFlag";

        /**
         * Attribute domainSortIndex
         */
        static final String DomainSortIndex = "domainSortIndex";

        /**
         * Attribute domainIcon
         */
        static final String DomainIcon = "domainIcon";

        /**
         * Attribute modifyTime
         */
        static final String ModifyTime = "modifyTime";

        /**
         * Attribute operatorId
         */
        static final String OperatorId = "operatorId";

        /**
         * Attribute operatorName
         */
        static final String OperatorName = "operatorName";

        /**
         * Attribute id
         */
        static final String Id = "id";

        /**
         * Attribute domainId
         */
        static final String DomainId = "domainId";

        /**
         * Attribute remarks
         */
        static final String Remarks = "remarks";

        /**
         * Attribute roleCode
         */
        static final String RoleCode = "roleCode";

        /**
         * Attribute roleName
         */
        static final String RoleName = "roleName";

        /**
         * Attribute roleType
         */
        static final String RoleType = "roleType";

        /**
         * Attribute status
         */
        static final String Status = "status";

        /**
         * Attribute domainTitleKey
         */
        static final String DomainTitleKey = "domainTitleKey";

        /**
         * Attribute domainName
         */
        static final String DomainName = "domainName";

        /**
         * Attribute domainCode
         */
        static final String DomainCode = "domainCode";
    }

    static public interface _DataObjectProperty extends DataProperty {
    }
}
